package com.diankangwo.factory.dao;

import com.diankangwo.factory.entity.TdCollection;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 用户收藏类接口
 */
@Mapper
@Repository
public interface TdCollectionMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(TdCollection record);

    int insertSelective(TdCollection record);

    TdCollection selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TdCollection record);

    int updateByPrimaryKey(TdCollection record);

    /**
     * 按日查询收藏
     */
    List<TdCollection> queryByDay(String startTime, String endTime);
}